package com.lyh.service.provider;

import com.lyh.dao.Provider.ProviderMapper;
import com.lyh.pojo.Provider;

import java.util.List;
import java.util.Map;

public class ProviderServiceImpl implements ProviderService{

    private ProviderMapper providerMapper;

    public void setProviderMapper(ProviderMapper providerMapper) {
        this.providerMapper = providerMapper;
    }

    @Override
    public List<Provider> getProviderList(Map map) {
        return providerMapper.getProviderList(map);
    }

    @Override
    public int getCount(Map map) {
        return providerMapper.getCount(map);
    }

    @Override
    public Provider getProviderById(int id) {
        return providerMapper.getProviderById(id);
    }

    @Override
    public int checkProCode(String proCode) {
        return providerMapper.checkProCode(proCode);
    }

    @Override
    public int modifyProvider(Provider provider) {
        return providerMapper.modifyProvider(provider);
    }

    @Override
    public int deleteProvider(int id) {
        return providerMapper.deleteProvider(id);
    }

    @Override
    public int addProvider(Provider provider) {
        return providerMapper.addProvider(provider);
    }

    @Override
    public List<Provider> getProviderNameList() {
        return providerMapper.getProviderNameList();
    }
}
